/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights
 * reserved. <a>http://www.cqcis.com</a>
 */
package com.cqcis.uip.base.framework.utils;

import java.lang.reflect.Method;

/**
 * Class Object
 * 
 * @author huangmy
 * @date   2008-11-1
 */
public class ClassUtil {
	/**
	 * clone a Cloneable Object
	 * 
	 * @param obj
	 * @return
	 * @throws Exception
	 */
    public static Object clone(Cloneable obj) throws Exception {
    	Method m = obj.getClass().getMethod("clone");
    	if (m != null) {
    		return m.invoke(obj);
    	}
    	
    	return null;
    }
}